<?php  

namespace app\admin\controller;

use think\Controller;
use think\Request;
use think\Db;

class Fankui extends Admin
{
	public function fan()
	{
		$list = Db::name('to_fankui')->select();

	    $this->assign('list',$list); 

	    return $this->fetch('fankui/fankui');
	}

	 //反馈删除
   public function delete($id)
   {

   	 $result = Db::name('to_fankui')->delete($id);
     
     if ($result >0 ) {
       $info['status'] = true;
     }else{
       $info['status'] = false;
     }

     return $info;




   	 return $this->fetch('fankui/fankui');
   }
}